/***********************************************
 * A class to test the workout chart gui  
 * @author Brian Renzenbrink
 ***********************************************/

package tests;

import java.awt.Dimension;
import java.util.ArrayList;
import java.util.Date;

import javax.swing.JFrame;

import workoutModel.weightliftingSet;
import workoutModel.workoutSet;
import gui.Content_WeightliftingChart;
import gui.previousWorkoutGUI;

public class workoutChart_test{
	
	public static void main(String args[]){
		test_workoutChart();
	}
	
	
	
	
	public static void test_workoutChart(){
		//Test the initialization function		
		ArrayList<weightliftingSet> workouts = new ArrayList<weightliftingSet>();
		Date date = new Date();
		weightliftingSet w1 = new weightliftingSet(date, "pushdowns", "slight pain", "RIT", 1, 12, 120.4, "machine");
		weightliftingSet w2 = new weightliftingSet(date, "pushdowns", "slight pain", "RIT", 2, 10, 120.4, "machine");
		workouts.add(w1);
		workouts.add(w2);
		//previousWorkoutGUI pw = new previousWorkoutGUI(workouts);
		JFrame wChart = new JFrame();
		wChart.setSize(new Dimension(750, 500));
		wChart.add(new Content_WeightliftingChart(true, new Dimension(750, 500)));
		wChart.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		wChart.setVisible(true);
	   
	}
	
}